﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.DataAccess.Interfaces;
using Core.Model;
using Core.Logic.Interfaces;
using Core.Relations;

namespace Core.Logic.Implementations
{
    public class UserLogicProvider:LogicProvider<User>,IUserLogicProvider
    {

        public UserLogicProvider(IUserDataProvider userDataProvider) : base(userDataProvider)
        {
        }

        #region Implementation of IUserLogicProvider



        public void PermanentDeleteUser(User user)
        {
            throw new NotImplementedException();
        }

        public User GetUserByName(string name)
        {
            return ((IUserDataProvider) ModelDataProvider).GetUserByName(name);
        }

        public IList<User> GetUsersByEmail(string email)
        {
            return ((IUserDataProvider) ModelDataProvider).GetUserByEmail(email);
        }

        #endregion
    }
}
